diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-25 15:33:27 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-25 15:38:50 +0100 |
| commit | 97dc68e22e754d8e478beee590dbe9868171af50 (patch) | |
| tree | 01876f9b236b0a4ba696d5b084bd766b69046494 /src/pages/article/[slug].tsx | |
| parent | 71942c86311a9d1ddf4ae486d811f8393786e855 (diff) | |
chore: add reading time in posts meta
Diffstat (limited to 'src/pages/article/[slug].tsx')
| -rw-r--r-- | src/pages/article/[slug].tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index f43c9ee..c9aedb8 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -28,6 +28,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => { databaseId, dates, featuredImage, + info, intro, seo, topics, @@ -39,7 +40,9 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => { author, commentCount: comments.length, dates, + readingTime: info.readingTime, thematics, + wordsCount: info.wordsCount, }; const router = useRouter(); |
